package com.hydl.power.service;

import com.github.pagehelper.PageInfo;
import com.hydl.power.pojo.City;
import com.hydl.power.pojo.Device;
import com.hydl.power.pojo.Transformer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransformerService {
    PageInfo<Transformer> selectByCondition(Integer pageNum, Integer pageSize,String cityId,String projectId,String roomId);

    PageInfo<Transformer> selectByToken(Integer pageNum, Integer pageSize,String cityId,String projectId,String roomId,String token);

    int addTransformer(String roomId,String transformerName,String projectId ,String cityId ,String deviceId,String transformerCapacity);

    int deleteById(Integer id);

    int updateTrans(String transformerName,Integer id);

    Transformer selectById(Integer id);

    /*模糊查询*/
    PageInfo<Transformer> queryTransformerLike(Integer pageNum,Integer pageSize, String text, String token);
}
